package com.yyfax.common.form;

/**
 * Created by fuqiang on 2017/4/28.
 * 带右边按钮的校验普通输入框的处理类
 * Copyright  2017 www.yylending.com. All Rights Reserved.
 */
public class NormalWithDrawableRightControl extends FormRowControl {

	@Override
	public boolean toastControl(int type, FormRow formRow, NoticeText noticeText) {
		if (type == 11) {
			FormInputView formInputView = (FormInputView) formRow.getRightView();
			return NormalValidate.validate(formRow.getContext(), formInputView.mREditText, noticeText);
		} else {
			if (getFormRowControl() != null) {
				return getFormRowControl().toastControl(type, formRow, noticeText);
			}
		}
		return true;
	}
}
